package com.gimi.cloud.bbp.manage.consumer.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.gimi.cloud.bbp.common.utils.reqhead.Response;
import com.gimi.cloud.bbp.dto.product.LogisticsCompanyDTO;

import feign.Headers;

@FeignClient("bbp-manage-service")
public interface LogisticsCompanyFeignService {
	
    /** 获取数据列表*/
    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/logistics/company/list", method = RequestMethod.POST)
    Response list(@RequestBody LogisticsCompanyDTO dto);

    /**
     * 获取单个数据
     * @param dto 查询参数
     * @return 查询结果
     */
    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/logistics/company/info", method = RequestMethod.POST)
    Response info(@RequestBody LogisticsCompanyDTO dto);

    /**
     * 新增或编辑
     * @param dto 
     * @return 保存结果
     */
    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/logistics/company/saveOrUpdate", method = RequestMethod.POST)
    Response saveOrUpdate(@RequestBody LogisticsCompanyDTO dto);

    /**
     * 删除
     * @param dto 
     * @return 删除结果
     */
    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/logistics/company/delete", method = RequestMethod.POST)
    Response delete(@RequestBody LogisticsCompanyDTO dto);
    
 
}
